<div class="post_more_cont">
	<div class="pages">

		<?php if ($first_page !== FALSE): ?>
			<a class="underline" href="<?php echo HTML::chars($page->url($first_page)) ?>" rel="first"><?php echo 'Первая' ?></a>
		<?php endif ?>

		<?php if ($previous_page !== FALSE): ?>
			<a class="underline" href="<?php echo HTML::chars($page->url($previous_page)) ?>" rel="prev"><?php echo 'Предыдущая' ?></a>
		<?php endif ?>

		<?php for ($i = 1; $i <= $total_pages; $i++): ?>

			<?php if ($i == $current_page): ?>
				<span><?php echo $i ?></span>
			<?php else: ?>
				<a class="underline" href="<?php echo HTML::chars($page->url($i)) ?>"><?php echo $i ?></a>
			<?php endif ?>

		<?php endfor ?>

		<?php if ($next_page !== FALSE): ?>
			<a class="underline" href="<?php echo HTML::chars($page->url($next_page)) ?>" rel="next"><?php echo 'Следующая' ?></a>
		<?php endif ?>

		<?php if ($last_page !== FALSE): ?>
			<a class="underline" href="<?php echo HTML::chars($page->url($last_page)) ?>" rel="last"><?php echo 'Последняя' ?></a>
		<?php endif ?>

	</div>
</div>